public class baimabaidan {
    public static void main(String[] args) {
        for (int i = 0; i <= 34; i++) {
            for (int j = 0; j < 50; j++) {
                for (int z = 0; z < 100; z++) {
                    if ((i+j+z==100)&&(3*i+2*j+z/2==100)&&(z%2==0)){
                        System.out.print("大马="+i);
                        System.out.print("中马="+j);
                        System.out.print("小马="+z);
                        System.out.println();
                    }
                }
            }
        }
    }
}
